Skip to content

Conversation

@adamrefaey
Copy link
Collaborator

Change

update report processing logic to handle isMedicalReport correctly and improve error handling

Does this PR introduce a breaking change?

{...}

What needs to be documented once your changes are merged?

{...}

Additional Comments

{...}

@adamrefaey adamrefaey requested a review from Copilot April 28, 2025 17:34
@adamrefaey adamrefaey self-assigned this Apr 28, 2025
@adamrefaey adamrefaey requested a review from GuidoBR April 28, 2025 17:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the report processing logic to ensure that non‐medical reports are handled correctly and improves error handling in both frontend and backend.

  • Updated the error handling flow in the frontend by reordering conditions and adding an early return on failed reports.
  • Modified the backend logic for the isMedicalReport field to return undefined instead of false when the value is falsy.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
frontend/src/pages/Processing/ProcessingPage.tsx Refactored condition checks in the error handling branch for processing reports.
backend/src/reports/reports.service.ts Adjusted the isMedicalReport field value to return undefined instead of false in certain cases.

@GuidoBR GuidoBR merged commit 17d85a6 into main Apr 28, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants